<?php echo $this->fetch('header.html'); ?>
<div class="store_info" <?php if ($this->_var['store']['wap_banner']): ?>style="background-image:url('<?php echo $this->_var['site_url']; ?>/<?php echo $this->_var['store']['wap_banner']; ?>?<?php echo $this->_var['random_number']; ?>')"<?php endif; ?>>
     <div class='banner-mask'></div>
    <div class="info">
        <a class="store-block">
            <img class="img" src="<?php echo $this->_var['site_url']; ?>/<?php echo $this->_var['store']['store_logo']; ?>"/>
            <div class="store-text">
                <div class="store-name"><?php echo $this->_var['store']['store_name']; ?></div>
                <div class="store-info "><?php echo $this->_var['store']['collect_count']; ?>人关注</div>
            </div>
            <a href='javascript:<?php if ($this->_var['store_collected']): ?>un<?php endif; ?>collect_store(<?php echo $this->_var['store']['store_id']; ?>)' class='guanzhu iconfont store_collect_btn <?php if ($this->_var['store_collected']): ?>active<?php endif; ?>'>&#xf003e;关注</a>
        </a>
    </div>
</div>
<div class='store_goods_count'>
<div class="border-grids total-section">
            <div class="ui-flex total-centent">
                <a href="index.php?app=store&act=search&id=<?php echo $this->_var['store']['store_id']; ?>" class="cell">
                    <span class="total-num"><?php echo $this->_var['store']['all_goods_count']; ?></span>
                    <span class="total-text">全部商品</span>
                </a>
                <a href="index.php?app=store&act=search&id=<?php echo $this->_var['store']['store_id']; ?>&type=new" class="cell">
                    <span class="total-num"><?php echo $this->_var['store']['new_goods_count']; ?></span>
                    <span class="total-text">上新</span>
                </a>
		<a href="index.php?app=store&act=search&id=<?php echo $this->_var['store']['store_id']; ?>&type=hot" class="cell">
                    <span class="total-num"><?php echo $this->_var['store']['hot_goods_count']; ?></span>
                    <span class="total-text">热销</span>
                </a>
				            </div>
        </div>
</div>
<div class="col-0" area="col-0" data-position="0" widget_type="area">
            <?php $this->display_widgets(array('page'=>'index','area'=>'col-0')); ?>
</div>

<?php if ($this->_var['recommended_goods']): ?>
<div class="lists">
    <h3><p>橱窗推荐</p></h3>
    <ul>
        <?php $_from = $this->_var['recommended_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rgoods');if (count($_from)):
    foreach ($_from AS $this->_var['rgoods']):
?>
        <a href="<?php echo url('app=goods&id=' . $this->_var['rgoods']['goods_id']. ''); ?>">
            <li>
                <img src="<?php echo $this->_var['site_url']; ?>/<?php echo $this->_var['rgoods']['default_image']; ?>" />
                <p><?php echo htmlspecialchars($this->_var['rgoods']['goods_name']); ?></p>
                <span><?php echo price_format($this->_var['rgoods']['price']); ?></span>
            </li>
        </a>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
</div>
<?php endif; ?>
<?php if ($this->_var['new_goods']): ?>
<div class="lists">
    <h3><p>新品上市</p></h3>
    <ul>
        <?php $_from = $this->_var['new_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ngoods');if (count($_from)):
    foreach ($_from AS $this->_var['ngoods']):
?>
        <a href="<?php echo url('app=goods&id=' . $this->_var['ngoods']['goods_id']. ''); ?>">
            <li>
                <img src="<?php echo $this->_var['site_url']; ?>/<?php echo $this->_var['ngoods']['default_image']; ?>" />
                <p><?php echo htmlspecialchars($this->_var['ngoods']['goods_name']); ?></p>
                <span><?php echo price_format($this->_var['ngoods']['price']); ?></span>
            </li>
        </a>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
</div>
<?php endif; ?>
<?php echo $this->fetch('footer.html'); ?>


